﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HtmlExtractor
{
    public class RequierdNotFindException:Exception
    {
        public string RequriedName;
        public RequriedType Type;
        public override string Message
        {
            get
            {
                return  RequriedName+"没有发现"+"类型:"+Type;
            }
        }
        public RequierdNotFindException(RequriedType type,string requriedName)
        {
            Type = type;
            RequriedName = requriedName;
        }
    }
    public enum RequriedType
    {
        Element,
        Attribute,
        Text
    }
}
